package classTest.HomeWork.day1;
/**
 * char  charAt(int index)
 * 返回当前字符串指定下标处对应的字符：
 */
public class charAt {
    public static void main(String[] args) {
        String str="helloworld";
        for (int i = 0; i < str.length(); i++) {
            char str1=str.charAt(i);
            System.out.println(str1);
        }
        int [] arr = {1, 2, 3};
        for (int i = 0; i < arr.length; i++) {
            String str1 =String.valueOf(arr[i]);
            System.out.print(str1);
        }
        System.out.println();
        String a="abcdefj";
        for (int i = a.length()-1; i >=0 ; i--) {
            char str2=a.charAt(i);
            System.out.print(str2);
        }
    }
}

